package com.levi.utils;

import android.util.TypedValue;

/**
 * Created by Levi on 2018/4/12.
 */

public class DimenUtils {

    public static int dp2px(int dp){
        return (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP,
                dp,
                AppContext.getContext().getResources().getDisplayMetrics());
    }
}
